
package com.jf.cloud.search.constant;

import com.jf.cloud.common.constant.Constant;

/**
 * es当中的index
 * @author zz
 * @date 2020/11/12
 */
public enum EsIndexEnum {

    /**
     * 商品
     */
    PRODUCT(Constant.NAME_SPACE + "product"),

    /**
     * 订单
     */
    ORDER(Constant.NAME_SPACE + "order"),

    /**
     * 订单发票
     */
    ORDER_INVOICE(Constant.NAME_SPACE + "order-invoice"),

    /**
     * 采购订单
     */
    PURCHASE_ORDER(Constant.NAME_SPACE + "purchase-order"),

    /**
     * 退款订单
     */
    ORDER_REFUND(Constant.NAME_SPACE + "order-refund"),

    ;

    private final String value;

    public String value() {
        return value;
    }

    EsIndexEnum(String value) {
        this.value = value;
    }
}
